package cn.stylefeng.guns.modular.gridsystem.timer;

import lombok.extern.slf4j.Slf4j;
//import net.aivoicetech.enutils.CodeValidKit;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * @author ssy
 * @date 2022/3/21 9:24
 */
@Configuration
@EnableScheduling
@Slf4j
public class AuthenticationServiceTime {

//    @Scheduled(cron = "*/10 * * * * ? ")
//    public void checkServiceTime() {
//        try {
//            //鉴权
//            CodeValidKit.valid();
//        } catch (IllegalAccessException e) {
//            log.error(e.getMessage());
//            //鉴权异常系统停止
//            System.exit(0);
//        }
//    }

}
